if __name__ == '__main__':
    # for循环实现
    for i in range(101):
        if "7" in str(i) or i % 7 == 0:
            print(i)
    for i in range(1, 10):
        for j in range(1, i + 1):
            print(f"{i}*{j}={i * j}", end="\t")
        print()

    # while循环实现
    a = 1
    while a < 10:
        b = 1
        while b <= a:
            print(f"{b}*{a}={b * a}", end="\t")
            b+=1
        a+=1
        print()
    pass
